import request from '@/utils/request'

// 获取token接口
const getTokenData = (data) => {
  return request.post('/sys/login', data)
}

// 获取用户信息接口
const getUserInfo = () => {
  return request.get('/sys/profile')
}

// 修改·用户密码
const changePassword = (data) => {
  return request.put('/sys/user/updatePass',data)
}

export {
  getTokenData,
  getUserInfo,
  changePassword
}